package main

import (
	"fmt"
	"system_go/models"

	"system_go/pkg/gredis"
	"system_go/pkg/setting"
	"system_go/routers"
)

//初始化
func init() {
	setting.Setup()
	models.Setup()
	gredis.Setup()
}

func main() {
	endPoint := fmt.Sprintf(":%d", setting.ServerSetting.HttpPort)
	routersInit := routers.InitRouter()
	routersInit.Run(endPoint)
}
